import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import aboutMe from '@/components/aboutMe'
import works from '@/components/works'
import skill from '@/components/skill'
import contact from '@/components/contact'
import sayHi from '@/components/sayHi'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: HelloWorld,
      children: [
        {
          path: '',
          name: 'sayHi',
          component: sayHi
        },
        {
          path: '/aboutMe',
          name: 'aboutMe',
          component: aboutMe
        },
        {
          path: '/works',
          name: 'works',
          component: works
        },
        {
          path: '/skill',
          name: 'skill',
          component: skill
        },
        {
          path: '/contact',
          name: 'contact',
          component: contact
        }]
    }
  ]
})
